home *** CD-ROM | disk | FTP | other *** search
-
-
- PROGRAM ERRORS
-
- Whenevever you run one of your programs,or check it with the
- test command from the menu window ,AMOS performs a complete test of all
- the various instructions.This allows you to remove most of the errors
- straight from the editor withoutthe inconvenience of
- executing your program
- Here is a full list of these error messages:
-
- Array all ready dimensioned:It is only possible to dimension
- the same array once in your basic program.
-
- Array not dimensioned: The element you specified in
- the expression does not belong to a previously dimensioned array.
-
- DATA must start at the beginning of a line: Any DATA
- statements in your program must be placed at the absolute
- start of a line (excluding LABEL definitions)
-
- DO without LOOP:The DO and LOOP statements are used in pairs
- Each DO structure must be terminated by a single LOOP command
-
- ELSE without ENDIF:Youve omiited the final ENDIF command
- from a structured IF test.
-
- ELSE without IF:The ELSE statement can only be used inside a
- structured test.
-
- ENDIF without IF :An ENDIF command has been found in your
- program which does not correspond to an appropriate IF
- statement.
-
- Extension not loaded: Youve attempted to run a program
- which incorporates one of the new commands provided by
- an extension file.Check that the relevant extensions
- have been installed on your boot disk and that the
- extensions are selected for use from the CONFIG accessory.
-
- FOR without matching NEXT: A FOR command is not followed
- in the program by the expected NEXT statement.
-
- IF without ENDIF:The instructions inside a structured
- IF test should always be terminated by a single ENDIF statement
- . Dont confuse these tests with the IF...THEN command-they
- are completely different.
-
- Illegal number of parameters:You have attempted to to
- enter the wrong number of values into an
- instruction or proceedure.
-
- LOOP without DO:A LOOP command has been detected which
- does not match a corresponding DO statement.
-
- LABEL defined twice: Each label or proceedure can only be
- defined once in your program.
-
- Bad structure: Any nested loops must be placed COMPLETELY
- inside each other. Buty its illegal for loops to CROSS
- EXAMPLE:
- Do
- If A=B
- Loop
- Print A
- Endif
- THIS IS NOT ALLOWED
-
- NEXT withot FOR:AMOS has encounterd a NEXT instruction
- which does not match up with a previous FOR command.
-
- No THEN in a structured test: The IF...THEN command
- cannot be placed inside a structured test.
- Use IF. ..ENDIF instead.
-
- No jumps allowed in the middle of a loop!:(could cause
- havock at Alton Towers..Protocol)You cant jump directly
- inside a loop using a GOTO or GOSUB statement,however
- once you are within a loop,you can jump out of it.
-
- Not enough loops to exit:The loop counter you specified
- in a a EXIT IF command is greater than the number of
- active loops.
-
- Out of memory:During the test process this error may
- occur if AMOS cannot reserve the required amount of
- variable buffer space due to a lack of memory
- (see SET BUFFER)
-
- Proceedures limits must be alone on a line: The
- PROCEEDURE and END PROC statements must start on their own line.
-
- Proceedure not closed:The END PROC statement is missing
- from one of your proceedures.
-
- Proceedure not opened: An ENDPROC statement has been
- discoverd with no corresponding PROCEEDURE definition.
- REPEAT without matching UNTIL statement.
-
- Shared must be alone on a line: The SHARED command
- must be the only statement on the current line.
-
- Syntax error:The syntax (grammar) of the current line
- is wrong in some way.Look up the correct format in
- the manual.
-
- This array is not defined in the main program:You have
- tried to access an array inside a proccedure which has
- not been dimensioned in the main program.
-
- This instruction must be used within a proceedure:The
- SHARED command can only be used once INSIDE a
- proceedure definition.
-
- This variable is already defined as shared: You cannot define
- the same variable more than once in a single proceedure.
-
- UNTIL without REPEAT: The UNTIL command does not match
- a previous REPEAT command in your program.
-
- Undefined label: AMOS cannot find the label you specified
- in the instruction.(Hes gone down the wine cellar to find that
- rare vintage for you...Protocol)
-
- Undefined proceedure:The proceedure you have called does
- not presently exist in your program.
-
- Use empty brackets when defining a shared array:To
- define an array as SHARED,use a command like:
- Shared Array()
- It is illegal to add the dimensions of the array as well.
-
- Variable buffer cant be changed in the middle of a program!:The
- SET BUFFER command must always be the
- first line of your program,excluding REMS.
-
- WEND without WHILE: The WEND statement does not match a
- previous WHILE command in your program.
-
- WHILE without matching WEND: AMOS cannot find a
- corresponding WEND statement to match up with the current WHILE.
-
-